package com.sun.temp.mapper.mapper1;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sun.temp.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
//@DS("db1")
public interface UserDao extends BaseMapper<User> {
//    @Select("select * from t_user where name = #{name}")
//    @ResultType(User.class)
//    List<User> getUserListByName(@Param("name") String name);
//
//    @Select("select * from t_user where id = #{id}")
//    @ResultType(User.class)
//    User getUserById(@Param("id") String id);
//
//    @Select("select name from t_user where id = #{id}")
//    String getUserNameById(@Param("id") String id);

}
